html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
  color: '#5E6780';
  font-family: PingFangSC-Medium, PingFang SC;
}

.page-container {
  display: flex;
  flex-direction: column;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

// ////标题栏自定义后，修改content布局
.ant-layout-content {
  margin-top: 48px;
  padding-block: 0 !important;
}

.ant-layout-content {
  padding-inline: 0 !important;
}
////////

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}
.ant-modal-content {
  background-color: transparent;
}

@media (max-width: 768px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.custom-table-style {
  .ant-table-thead {
    > tr {
      > th {
        background: #eaecf8 !important;
      }
      > td {
        background: #eaecf8 !important;
      }
    }
  }
}

// .ant-btn {
//   padding: 7px 8px;
// }

.flex {
  display: flex;
}

.flex-r {
  display: flex;
  flex-direction: row-reverse;
}

.flex-acen-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flex-row-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.flex-row-acenter {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-colr {
  display: flex;
  flex-direction: column-reverse;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.flex-wrapr {
  display: flex;
  flex-wrap: wrap-reverse;
}

.flex-jcon-start {
  display: flex;
  justify-content: flex-start;
}

.flex-jcon-end {
  display: flex;
  justify-content: flex-end;
}

.flex-jcon-center {
  display: flex;
  justify-content: center;
}

.flex-jcon-sb {
  display: flex;
  justify-content: space-between;
}

.flex-jcon-sa {
  display: flex;
  justify-content: space-around;
}

.flex-aitem-start {
  display: flex;
  align-items: flex-start;
}

.flex-aitem-end {
  display: flex;
  align-items: flex-end;
}

.flex-aitem-center {
  display: flex;
  align-items: center;
}

.flex-aitem-baseline {
  display: flex;
  align-items: baseline;
}

.flex-aitem-stretch {
  display: flex;
  align-items: stretch;
}

.flex-acon-start {
  display: flex;
  align-content: flex-start;
}

.flex-acon-end {
  display: flex;
  align-content: flex-end;
}

.flex-acon-center {
  display: flex;
  align-content: flex-center;
}

.flex-acon-sb {
  display: flex;
  align-content: space-between;
}

.flex-acon-sa {
  display: flex;
  align-content: space-around;
}

.flex-acon-stretch {
  display: flex;
  align-content: stretch;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex1 {
  flex: 1;
}

.m-5 {
  margin: 5px;
}
.m-10 {
  margin: 10px;
}
.m-15 {
  margin: 15px;
}
.m-20 {
  margin: 20px;
}

.m-l-6 {
  margin-left: 6px;
}
.m-l-10 {
  margin-left: 10px;
}
.m-l-15 {
  margin-left: 15px;
}
.m-l-17 {
  margin-left: 17px;
}
.m-l-23 {
  margin-left: 23px;
}
.m-l-30 {
  margin-left: 30px;
}
.m-r-5 {
  margin-right: 5px;
}
.m-r-10 {
  margin-right: 10px;
}
.m-r-15 {
  margin-right: 15px;
}
.m-r-20 {
  margin-right: 20px;
}

.m-t-2 {
  margin-top: 2px;
}

.m-t-5 {
  margin-top: 5px;
}
.m-t-10 {
  margin-top: 10px;
}
.m-t-15 {
  margin-top: 15px;
}

.f9 {
  font-size: 12px;
  -webkit-transform: scale(calc(9 / 12));
  transform-origin: left center;
}

.f10 {
  font-size: 12px;
  -webkit-transform: scale(calc(10 / 12));
  transform-origin: left center;
}

.f11 {
  font-size: 12px;
  -webkit-transform: scale(calc(11 / 12));
  transform-origin: left center;
}

.cell-divider {
  border-top: 1px solid rgba(151, 151, 151, 0.2);
}

//开启layout的headerRender后对 头部样式 进行修复
.ant-layout-header {
  height: 48px !important;
  line-height: 48px !important;
  border: none !important;
}
.ant-layout-content {
  margin-top: 0;
}

.ant-tabs-top > .ant-tabs-nav::before {
  border-bottom: 0;
}

.t-a-c {
  text-align: center;
}

.f-s-12 {
  font-size: 12px;
}
.f-s-14 {
  font-size: 14px;
}
.f-s-16 {
  font-size: 16px;
}
.f-s-18 {
  font-size: 18px;
}
.f-s-20 {
  font-size: 20px;
}
.f-s-24 {
  font-size: 24px !important;
}
.width-100 {
  width: 100%;
}

.f-l {
  float: left;
}

.p-r {
  position: relative;
}
.p-a {
  position: absolute;
}
.p-f {
  position: fixed;
}

.slideOverflow {
  /* 配置滚动条的轨道 */
  &::-webkit-scrollbar {
    width: 5px; /* 调整滚动条的宽度 */
  }

  /* 配置滚动条的滑块 */
  &::-webkit-scrollbar-thumb {
    background: rgba(0, 117, 255, 0);
    border-radius: 20px; /* 调整滚动条滑块的圆角 */
  }

  /* 配置滚动条的轨道背景 */
  &::-webkit-scrollbar-track {
    background-color: transparent; /* 调整滚动条轨道的背景颜色 */
  }
  &:hover {
    /* 配置滚动条的轨道 */
    &::-webkit-scrollbar {
      width: 5px; /* 调整滚动条的宽度 */
    }

    /* 配置滚动条的滑块 */
    &::-webkit-scrollbar-thumb {
      background: rgba(0, 117, 255, 0.19);
      border-radius: 20px; /* 调整滚动条滑块的圆角 */
    }

    /* 配置滚动条的轨道背景 */
    &::-webkit-scrollbar-track {
      background-color: transparent; /* 调整滚动条轨道的背景颜色 */
    }
  }
}
//阿里巴巴普惠体 2.0 85 Bold
@font-face {
  font-family: 'Alibaba-PuHuiTi-B', sans-serif; // 如果不可用，回退到系统默认字体
  src: url('./assets/font/AlibabaPuHuiTi-2-85-Bold.woff2') format('woff2'),
    url('./assets/font/AlibabaPuHuiTi-2-85-Bold.woff') format('woff');
}
